package com.shangma.exercise;

import java.math.BigDecimal;

/**
 * @classname:demo01
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/25 22:28
 * @version: 0.1
 * @since:1.8
 */
public class demo01 {
    public static void main(String[] args) {
        int a = 12, b = 1231, c = 40, d = 50, f = 100;
        int max = (a > b) ? ((a > c) ? a : c) : ((b > c) ? b : c);
        max = (max > d) ? ((max > f) ? max : f) : ((d > f) ? d : f);

        System.out.println("最大值:" + max);
    }
}
